<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>新闻中心</title>
		<link rel="stylesheet" href="../../plugin/layui/css/layui.css" />
		<link rel="stylesheet" type="text/css" href="../../css/utils.css" />
		<link rel="stylesheet" type="text/css" href="../../css/index.css" />
		<script src="../../plugin/layui/layui.js" type="text/javascript" charset="utf-8"></script>
		<script src="../../plugin/jquery-3.2.1.min.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			.news-detail{
				margin-bottom: 100px;
			}
			.news-detail h3{
				text-align: center;
				font-size: 20px;
				font-weight: bold;
				margin-bottom: 20px;
			}
			.news-detail p{
				text-align: right;
				margin-right: 200px;
				color: #999;
				margin-bottom: 50px;
			}
		</style>
	</head>

	<body>
		<div class="layui-fluid">
			<div class="layui-row header-row">

			</div>
			<div class="client-us">
				<div class="pageBg">
					<div class="pageBg2">
						<div class="pageBg3">
							<h3>新闻详情</h3>
							<p>News Detail</p>
						</div>
					</div>
				</div>
				<div class="client-container">
					<div class="limit-width layui-row news-detail">
						<h3 class="title"></h3>
						<p class="time"></p>
						<div class="content"></div>
					</div>

				</div>

			</div>

			<div class="footer-nav">

			</div>

	</body>
	<script src="../../utils/api/index.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../utils/common/index.js" type="text/javascript" charset="utf-8"></script>

</html>
<script type="text/javascript">
	var id = getRequest().id;
	newsDeatil(id)

	function newsDeatil(id) {
		$.get(requestUrl.baseUrl + '/' + requestUrl.apiUrl.newsInfo + id, function(data) {
			if(data.code == 0) {
				var title = data.news.title;
				var content = data.news.content;
				var createTime = data.news.createTime;
				$('.news-detail h3.title').text(title)
				$('.news-detail div.content').html(content)
				$('.news-detail p.time').text(createTime)
			}
		})
	}
</script>